<template>
  <el-table
    :data="tableData"
    border
    style="width: 100%"
    v-loading="$store.state.isShowLoading"
    :style="{'--tableColor':$store.state.currentTheme=='defaultTheme'?'#f4f5f5':'#012447'}">
    <slot></slot>
  </el-table>
</template>
<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  name: 'TableBase',
  props: {
    tableData: {
      type: Array,
      default: () => []
    }
  }
})
</script>
<style lang="scss" scoped>
::v-deep .el-table tbody tr:hover>td {
  background-color: var(--tableColor) !important;
}

::v-deep .el-table__header-wrapper table thead th{
  background-color: var(--tableColor) !important;
}
</style>
